Posts

Post not yet marked as solved
2 Replies
I have created a Xcode Target template (Project template inside '~/Library/Developer/Xcode/Templates/Project Templates/iOS/Framework & Library/My Component Template.xctemplate' withTargetOnlyin my TemplateInfo.plist)The context is the follow :I write many application with the same Design. So I have writted a common UI framework (an extension of Material Design Components) used by all my application.In my UI framework, i have many component and one target by component ( + one target "Core" for common classes of all component). For more visibility, I use the same architecture than Material Components :All my target are in a subdirectory called "components" (but in the root directory in Xcode).├── My UI Project.xcodeproj└── components ├── Core │ ├── Core.h │ ├── Info.plist │ ├── src │ └── tests │ ├── CoreTests.swift │ └── Info.plist ├── Component1 │ ├── Component1.h │ ├── Info.plist │ ├── src │ └── tests │ ├── Component1Tests.swift │ └── Info.plist ├── Component2 │ ├── Component2.h │ ├── Info.plist │ ├── src │ └── tests │ ├── Component2Tests.swift │ └── Info.plist └── Component3 ├── Info.plist ├── Component3.h ├── src └── tests ├── Info.plist └── Component3Tests.swiftMy problem: today, whene a want create new component, I need create new target in Xcode, move manualy the folder creeated in the components directory, and edit the 'My UI Project.xcodeproj/project.pbxproj' file for correct the path of Info.plist.I want something to automate these actions. I prefere an Xcode template but if it's not possible, i will write a fastlane/ruby script for this.